import { get, post } from '@/utils/baseApiMethod'


export function goRegister(data) {
  return post('/chatUser/register', data)
}

export function goLogin(data) {
  return post('/chatUser/login', data)
}

export function getFriendList(params) {
  return get('/chatUser/getFriendList', params)
}

export function addFriend(data) {
  return post('/chatUser/addFriend', data)
}

export function getUserInfo(params) {
  return get('/chatUser/getUserInfo', params)
}

export function searchUser(params) {
  return get('/chatUser/searchUser', params)
}

export function isFriend(params) {
  return get('/chatUser/isFriend', params)
}

export function getUserList(data) {
  return post('/chatUser/getUserList', data)
}

export function agreeFriend(data) {
  return post('/chatUser/agreeFriend', data)
}